package com.tgky.ybzb.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.tgky.ybzb.entity.result.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (SysDict)表实体类
 *
 * @author makejava
 * @since 2024-09-06 09:25:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="字段表对象", description="系统字典表对象")
@TableName("sys_dict")
public class SysDict extends BaseEntity {
    //主键
    @ApiModelProperty(value = "主键id", position = 0)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //字典名称
    @TableField(value = "name")
    @ApiModelProperty(value = "字典名称", position = 1)
    private String name;
    //字段码值
    @TableField(value = "code")
    @ApiModelProperty(value = "码值", position = 2)
    private Integer code;
    //字典描述
    @TableField(value = "remark")
    @ApiModelProperty(value = "描述", position = 3)
    private String remark;
    //字典类型
    @TableField(value = "type")
    @ApiModelProperty(value = "类型", position = 4)
    private Integer type;
}

